home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / pascal / scanh313.zip / SCANHELP.STY < prev   
Text File  |  1993-07-27  |  2KB  |  63 lines

  1. %  SCANHELP.STY - style file to work with SCANHELP generated LaTeX files
  2.  
  3. % Keyword references are italicized and indexed
  4. % Args:  name, enclosing name, reference label (for use with a \label command,
  5. %        but unused in this style
  6.  
  7. \newcommand{\keyword}[3]{%
  8. {\it #1}%
  9. \index{#1!#2}}
  10.  
  11. % The helptopic environment takes 4 arguments:
  12. % the name, the subtitle, the reference label, the tag (to go in the margin)
  13.  
  14. \newenvironment{helptopic}[4]{\item[\hfill{\bf #4}]%
  15. %\label{#3}            %  Define this if you need cross-refs
  16. \index{#1!#2|bb}}{}
  17.  
  18. % The reftopic command is used to mark "See also" topics.  The arguments
  19. % are name, subtitle, reference label
  20.  
  21. \newcommand{\reftopic}[3]{\index{#1!#2|bb}}
  22.  
  23. % The bb command is used to give special emphasis to the index
  24. % entry for a definition
  25.  
  26. \newcommand{\bb}[1]{{\bf #1}}
  27.  
  28. % The newgroup command starts a new group of fields or methods
  29.  
  30. \newcommand{\newgroup}[1]{{\pagebreak[3]\large\hspace{-1.2in}\raisebox{-0.5ex}{#1}\ %
  31. \hrulefill\nopagebreak\\ \vspace{0.5ex}}}
  32.  
  33. % The helpgrouping environment takes the name of the grouping as an
  34. % argument, plus the unit it's found in
  35.  
  36. \newenvironment{helpgrouping}[2]%
  37. {%
  38. \markright{{\bf #1 \hfill}}%
  39. \nopagebreak%
  40. {\large #1 \hfill #2}\\%
  41. \nopagebreak%
  42. \rule{\textwidth}{0.2ex}\\%
  43. \begin{list}{}{%
  44. \setlength{\leftmargin}{1.3in}%
  45. \setlength{\itemindent}{0in}%
  46. \setlength{\labelwidth}{1.0in}%
  47. \setlength{\labelsep}{0.3in}%
  48. \raggedright%
  49. }}{\end{list}\pagebreak[3]}
  50.  
  51. \setlength{\parindent}{0in}
  52.  
  53. \setlength{\parskip}{1ex}
  54.  
  55. % The \hatsymb command defines the caret symbol
  56.  
  57. \newcommand{\hatsymb}{{\scriptsize \raisebox{0.5ex}{$\wedge$}}}
  58.  
  59. % The markedblock environment holds things that are marked by the #M directive
  60.  
  61. \newenvironment{markedblock}{\item[\hfill{\bf Example}]}{}%
  62.  
  63.